  function Page(fnc,pageCount,pageLength,start) {//初始化属性
                    this.fnc = fnc;//对象名称
                    this.page = start;//当前页数
                    this.pageCount = pageCount;//总页数
                    this.argName = 'p';//参数名
                    this.fpn = '首页';//首页显示名称
                    this.ppn = '上一页';//上一页显示名称
                    this.npn = '下一页';//下一页显示名称
                    this.lpn = '尾页';//尾页显示名称
                    this.pl = pageLength;//每页显示条数
                }
 
                Page.prototype.checkPages = function() {//进行当前页数和总页数的验证
                    if(isNaN(parseInt(this.page)))
                        this.page = 1;
                    if(isNaN(parseInt(this.pageCount)))
                        this.pageCount = 1;
                    if(this.page < 1)
                        this.page = 1;
                    if(this.pageCount < 1)
                        this.pageCount = 1;
                    if(this.page > this.pageCount)
                        this.page = this.pageCount;
                    this.page = parseInt(this.page);
                    this.pageCount = parseInt(this.pageCount);
                }
                Page.prototype.createHtml = function(mode) {//生成html代码
                    var strHtml = '', prevPage = this.page - 1, nextPage = this.page + 1;
                    strHtml +='<div class="quotes">';
 
                    if(prevPage < 1) {
                        strHtml += '<span class="disabled"> '+this.ppn+' </span>';
                    } else {
                        strHtml += '<a href="javascript:' + this.fnc + '(' + prevPage + ');"> '+this.ppn+' </a>';
                    }
                    if(this.page != 1)
                        strHtml += '<a href="javascript:' + this.fnc + '(1);">1</a>';
                    if(this.page >= 5)
                        strHtml += '...';
                    if(this.pageCount > this.page + 2) {
                        var endPage = this.page + 2;
                    } else {
                        var endPage = this.pageCount;
                    }
                    for(var i = this.page - 2; i <= endPage; i++) {
                        if(i > 0) {
                            if(i == this.page) {
                                strHtml += '<span class="current">'+i+'</span>';
                            } else {
                                if(i != 1 && i != this.pageCount) {
                                    strHtml += '<a href="javascript:' + this.fnc + '(' + i + ');">'+i+'</a>';
                                }
                            }
                        }
                    }
                    if(this.page + 3 < this.pageCount)
                        strHtml += '...';
                    if(this.page != this.pageCount)
                        strHtml += '<a href="javascript:' + this.fnc + '(' + this.pageCount + ');">' + this.pageCount + '</a>';
                    if(nextPage > this.pageCount) {
                        strHtml += '<span class="disabled"> '+this.npn+' </span>';
                    } else {
                        strHtml += '<a href="javascript:' + this.fnc + '(' + nextPage + ');"> '+this.npn+' </a>';
                    }
                    strHtml +='</div>';
                    return strHtml;
                }
                Page.prototype.printHtml = function(mode) {//显示html代码
                    this.checkPages();
                    return this.createHtml(mode);
                }